package com.TwinBlade.PicturePassword;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.graphics.Color;
import android.preference.Preference;
import android.preference.PreferenceManager;
import android.util.AttributeSet;

public class ColorPreference extends Preference
{
  private Context a;
  private int b;
  private int c;
  private int d;
  private boolean e = true;

  public ColorPreference(Context paramContext)
  {
    this(paramContext, null);
  }

  public ColorPreference(Context paramContext, AttributeSet paramAttributeSet)
  {
    super(paramContext, paramAttributeSet);
    this.a = paramContext;
    this.b = Color.argb(255, 57, 146, 181);
  }

  private int a()
  {
    return PreferenceManager.getDefaultSharedPreferences(this.a).getInt("ThemeColor", Color.argb(255, 57, 146, 181));
  }

  private void a(int paramInt)
  {
    PreferenceManager.getDefaultSharedPreferences(this.a).edit().putInt("ThemeColor", paramInt).commit();
  }

  public void onClick()
  {
    if (this.e)
    {
      this.d = a();
      this.c = this.d;
      e locale = new e(this.a, new m(this), this.d);
      locale.setOnCancelListener(new n(this));
      locale.setCanceledOnTouchOutside(true);
      locale.show();
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.TwinBlade.PicturePassword.ColorPreference
 * JD-Core Version:    0.6.2
 */